   if nativeStylesheetPath = fsUtils.resolveOnLoadPath(process.platform, ['css', 'less'])
     requireStylesheet(nativeStylesheetPath)
 
-  dimensions = atom.getWindowState('dimensions')
-  dimensions = defaultWindowDimensions unless dimensions?.width and dimensions?.height
-  window.setDimensions(dimensions)
-  remote.getCurrentWindow().show()
-  $(window).on 'unload', -> atom.setWindowState('dimensions', window.getDimensions())
-
 # This method is only called when opening a real application window
 window.startEditorWindow = ->
   installAtomCommand()


  atom.windowMode = 'editor'
  windowEventHandler = new WindowEventHandler
  config.load()
  keymap.loadBundledKeymaps()
  atom.loadThemes()

  browserWindow.setPosition(x, y)
  browserWindow.setSize(width, height)

window.restoreDimensions = ->
  dimensions = atom.getWindowState('dimensions')
  dimensions = defaultWindowDimensions unless dimensions?.width and dimensions?.height
  window.setDimensions(dimensions)
  $(window).on 'unload', -> atom.setWindowState('dimensions', window.getDimensions())

window.closeWithoutConfirm = ->
  ipc.sendChannel 'close-without-confirm'

