First, you need to fill the glass baking dish with water and add a few drops of dishwashing liquid. Now, take an aluminum foil and create a small ball (don't start playing with the ball).
Scrub the baked-on grime off the dish by using the foil ball. It is one of the fastest ways to clean glass dishes.