How to close the renderer process without bringing the main(view) to the front?


I developed an Electron app with two BrowserWindows. I can open the second (renderer) window with a GlobalShortcut. However, every time I close the renderer window, the main window appears below. Is it possible to send the ‘close’ event and close the renrerer process without bringin the main window in front again (I mean not focussing on the Electron app)? Thank you very much for your help.