Water boils on the stove, producing water vapor. When the water vapor comes in contact with the cold pane of glass it condenses and forms drops.