title: Electron app OSX: List all windows when right-clicking dock icon
body: <p>I've created an Electron app which is effectively a native wrapper for my web app, with some native integration. When the user clicks on external link I create a new BrowserWindow to load the request. If I then click on the main window the secondary browser window gets hidden and it is no longer obvious that the second window even exists.</p>
  
  <p>If I right click on the app's dock icon it does not show that there are multiple windows associated with the app. Do I have to add new windows to this list manually? I see that there is an API to add files to the recent documents section of the dock menu, but nothing about listing windows. </p>
  
  <p><strong>Is there a way to make it so that my open Electron BrowserWindow instances appear in the dock menu as shown in the image below?</strong></p>
  
  <p>Thanks.</p>
  
  <p><a href="https://i.stack.imgur.com/Tkzpj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tkzpj.png" alt="Chrome windows listed at top"></a></p>