Adding and removing BrowserView instances on Mac

I’ve been working on an Electron app that uses a BrowserView to overlay a loading screen. On Mac, this works fine the first time transitioning from the BrowserView not being shown (not yet attached to the BrowserWindow) to the BrowserView showing after being added to the BrowserWindow. However, if I remove the BrowserView and then re-add it to the BrowserWindow, it does not overlay the content as expected. Instead, I have to minimize and bring the window back for the browser view to be displayed.

Thinking this was some kind of bug in Electron, I created a simple testcase application, however that works fine with essentially the same add/remove logic. Thus, this appears to be somehow related to my code.

Can anyone offer suggestions on how to track down and fix this problem? I can add that I don’t see this behavior on Linux.