If the window is colder than the humid air inside the cage, condensation will form on the inside. I've never had problems with condensation unless the cage humidity was way too high. Plus, good ventilation also helps a lot. I think if your cage keeps fogging up, something's usually wrong.