You know from weather reports about "relative humidity", which is a measure of the amount of actual water vapor in the air compared to the maximum amount of water vapor the air can hold. Warmer air can support more water vapor than cold air. As warm air comes in contact with a cold window pane, it's temperature is lowered and the water vapor that it can no longer hold condenses. If the temperature of the pane is below 0°C (32°F). that water freezes to become ice on the window pane.
Home humidifiers usually come with instructions NOT to raise the humidity level to the
point where water (and ice) form on windows, since damage to wooden frames can occur.
Answered by: Paul Walorski, B.A., Part-time Physics/Astronomy Instructor
'In a way science is a key to the gates of heaven, and the same key opens the gates of hell, and we do not have any instructions as to which is which gate.
Shall we throw away the key and never have a way to enter the gates of heaven? Or shall we struggle with the problem of which is the best way to use the key?'
Richard Phillips Feynman