Memorize window size, position and maximized state