gui: Save window size through preferences