### Issue Details

* **Electron Version:**
    4.2.9 , 5.x , 6.x
* **Operating System:**
  macOS 10.14.6

### To Reproduce

https://gist.github.com/deepak1556/5edd25929a0a3077a89328eaf60ec0f9

### Screenshots

![ezgif com-video-to-gif](https://user-images.githubusercontent.com/964386/63203707-30c56f80-c046-11e9-91b9-3331cebfb07b.gif)

### Additional Information

This is a regression from https://github.com/electron/electron/pull/19319

shell/browser/native_window_mac.h
void SetVisibleOnAllWorkspaces(bool visible,
                                 bool visibleOnFullScreen) override;
  bool IsVisibleOnAllWorkspaces() override;
  void SetAutoHideCursor(bool auto_hide) override;
  void SelectPreviousTab() override;
  void SelectNextTab() override;
  void MergeAllWindows() override;
  void MoveTabToNewWindow() override;
  void ToggleTabBar() override;
  bool AddTabbedWindow(NativeWindow* window) override;
  bool SetWindowButtonVisibility(bool visible) override;
  void SetVibrancy(const std::string& type) override;
  void SetTouchBar(
      const std::vector<mate::PersistentDictionary>& items) override;
  void RefreshTouchBarItem(const std::string& item_id) override;
  void SetEscapeTouchBarItem(const mate::PersistentDictionary& item) override;
  gfx::Rect ContentBoundsToWindowBounds(const gfx::Rect& bounds) const override;
  gfx::Rect WindowBoundsToContentBounds(const gfx::Rect& bounds) const override;
  
  void OverrideNSWindowContentView();
  
  void SetStyleMask(bool on, NSUInteger flag);
  void SetCollectionBehavior(bool on, NSUInteger flag);
  enum class TitleBarStyle {
    NORMAL,
    HIDDEN,
    HIDDEN_INSET,
    CUSTOM_BUTTONS_ON_HOVER,
  };
  TitleBarStyle title_bar_style() const { return title_bar_style_; }