TopLevelWindow: Only restore + save state if persistent