### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

13.1.0

### What operating system are you using?

macOS

### Operating System Version

macOS Big Sur 11.2.3 (20D91)

### What arch are you using?

x64

### Last Known Working Electron version

12.0.10

### Expected Behavior

![image](https://user-images.githubusercontent.com/19370201/120759983-2d1a1a00-c546-11eb-934e-33114a678193.png)


### Actual Behavior

![image](https://user-images.githubusercontent.com/19370201/120760015-37d4af00-c546-11eb-9bf2-acbd0566fa2d.png)


### Testcase Gist URL

_No response_

### Additional Information

```js
const { app, BrowserWindow, BrowserView } = require('electron')

function createWindow () {
    const win = new BrowserWindow({ width: 300, height: 300, titleBarStyle: 'hidden' })
    const view = new BrowserView()
    win.addBrowserView(view)
    view.setBounds({ x: 0, y: 0, width: 300, height: 40 })
    view.setBackgroundColor('#000000')
    win.loadFile('index.html')
}

app.whenReady().then(() => {
    createWindow()
})
```
shell/browser/native_window_mac.h
bool IsClosable() override;
  void SetAlwaysOnTop(ui::ZOrderLevel z_order,
                      const std::string& level,
                      int relative_level) override;
  ui::ZOrderLevel GetZOrderLevel() override;
  void Center() override;
  void Invalidate() override;
  void SetTitle(const std::string& title) override;
  std::string GetTitle() override;
  void FlashFrame(bool flash) override;
  void SetSkipTaskbar(bool skip) override;
  void SetExcludedFromShownWindowsMenu(bool excluded) override;
  bool IsExcludedFromShownWindowsMenu() override;
  void SetSimpleFullScreen(bool simple_fullscreen) override;
  bool IsSimpleFullScreen() override;
  void SetKiosk(bool kiosk) override;
  bool IsKiosk() override;
  void SetBackgroundColor(SkColor color) override;
  SkColor GetBackgroundColor() override;
  void SetHasShadow(bool has_shadow) override;
  bool HasShadow() override;
  void SetOpacity(const double opacity) override;
  double GetOpacity() override;
  void SetRepresentedFilename(const std::string& filename) override;
  std::string GetRepresentedFilename() override;
  void SetDocumentEdited(bool edited) override;
  bool IsDocumentEdited() override;
  void SetIgnoreMouseEvents(bool ignore, bool forward) override;
  void SetContentProtection(bool enable) override;
  void SetFocusable(bool focusable) override;