Store geometry and state per MainWindow in session