Function createElectronWindowPreferences