That would simply create a gigantic greenhouse that would require enormous energy inputs to keep it habitable during most of the year. Not the most eco-friendly solution.
There are films that can be applied to glass that block infrared light, which would reduce thermal heating.