### 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
#ifndef SHELL_BROWSER_NATIVE_WINDOW_MAC_H_
#define SHELL_BROWSER_NATIVE_WINDOW_MAC_H_
#import <Cocoa/Cocoa.h>
#include <memory>
#include <queue>
#include <string>
#include <vector>
#include "base/mac/scoped_nsobject.h"
#include "shell/browser/native_window.h"
#include "ui/display/display_observer.h"
#include "ui/native_theme/native_theme_observer.h"
#include "ui/views/controls/native/native_view_host.h"
@class ElectronNSWindow;