Dropbox Chooser: "Unable to communicate with the parent window"


I have a web app running inside an Electron container. One of the features allows a user to select a file from their own Dropbox account. A Dropbox Chooser opens in a new window and allows the user to login and select a file. However at the top of the window the message “Unable to communicate with the parent window” is displayed and nothing happens when the user selects a file.

Is there a way to make this work in an Electron environment?