### 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

12.0.5

### What operating system are you using?

Ubuntu

### Operating System Version

Ubuntu 21.04 x86_64 5.11.0-16-generic

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

All clicking inside the developer tool works well and not being interrupted by dragging the electron app.

### Actual Behavior

When I click the `option` and `close` tool inside the developer tool, it drags the electron app.

https://user-images.githubusercontent.com/61906684/118137437-666fd600-b42f-11eb-9443-ea1ebad1d0ec.mp4



### Testcase Gist URL

_No response_

### Additional Information

This bug only occurs if the dock position is on the left.
shell/browser/api/electron_api_browser_window.cc
web_contents()->WasOccluded();
  BaseWindow::OnWindowHide();
}
gin_helper::WrappableBase* BrowserWindow::New(gin_helper::ErrorThrower thrower,
                                              gin::Arguments* args) {
  if (!Browser::Get()->is_ready()) {
    thrower.ThrowError("Cannot create BrowserWindow before app is ready");
    return nullptr;
  }
  if (args->Length() > 1) {
    args->ThrowError();
    return nullptr;
  }
  gin_helper::Dictionary options;
  if (!(args->Length() == 1 && args->GetNext(&options))) {
    options = gin::Dictionary::CreateEmpty(args->isolate());
  }
  return new BrowserWindow(args, options);
}
void BrowserWindow::BuildPrototype(v8::Isolate* isolate,
                                   v8::Local<v8::FunctionTemplate> prototype) {
  prototype->SetClassName(gin::StringToV8(isolate, "BrowserWindow"));
  gin_helper::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate())
      .SetMethod("focusOnWebView", &BrowserWindow::FocusOnWebView)
      .SetMethod("blurWebView", &BrowserWindow::BlurWebView)
      .SetMethod("isWebViewFocused", &BrowserWindow::IsWebViewFocused)
      .SetProperty("webContents", &BrowserWindow::GetWebContents);
}
v8::Local<v8::Value> BrowserWindow::From(v8::Isolate* isolate,