Make window restorable