title: How can I get a window object from new BrowserWindow() in electron?
body: <p>Is there a way to reuse the window object? It may be necessary because the respective window may be generated dynamically.</p>
  
  <pre><code>var electron = require('electron');
  var app = electron.app
  var BrowserWindow = electron.BrowserWindow
  
  app.on('ready', function(){
    var win = new BrowserWindow();
    win.loadURL 'file://' + __dirname + '/index.html';
  
    // now i want use the window object in my BroserWindow win
   window = win.getWindowObject; // like this
    window.document.write(); // i can use window object here
  });
  </code></pre>