My question is this: Is it possible to call a dialog.showOpenWindow outside the main.js file? I would like to execute a function that when I click on a specific button in my BrowserWindow open the showOpenWindow and return the path of the specified file. I tried doing out of main.js however javascript did not recognize the electron command. Is there any way to do this?