On the 787 window heat is turned on during the first officers overhead panel scan and remains selected on for the entire flight. However, during certain normal and non-normal operations the power is shed to them as the electrical load is to high. Now if power to them was cycled at high altitude then maybe re-applying the heat to a cold soaked windscreen might be a problem but I suspect that the manufacturer probably looked at that scenario.