macOS: Autosave log window state and make it a panel