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

16.0.0-nightly.20210902

### What operating system are you using?

Windows

### Operating System Version

Випуск	Windows 10 Pro 21H1 Build 19043.1165

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

Window Controls Overlay in the expanded state should be adjacent to the right edge of the screen.

### Actual Behavior

Window Controls Overlay have an indentation of 1 pixel to the right edge of the screen. This means that you cannot close the window with a quick cursor movement because it "flies" past the button

### Testcase Gist URL

https://gist.github.com/2b4c2171fc64899bb394d0e83896f853

### Additional Information

![Знімок екрана 2021-09-03 172148](https://user-images.githubusercontent.com/1662812/132020911-a35a7686-a916-4b2f-943b-421638677ad1.png)

shell/browser/ui/views/win_frame_view.cc
return (IsMaximized() || frame()->IsFullscreen())
             ? 0
             : display::win::ScreenWin::GetSystemMetricsInDIP(SM_CXSIZEFRAME);
}
int WinFrameView::NonClientHitTest(const gfx::Point& point) {
  if (window_->has_frame())
    return frame_->client_view()->NonClientHitTest(point);
  if (ShouldCustomDrawSystemTitlebar()) {
    
    if (caption_button_container_) {
      gfx::Point local_point = point;
      ConvertPointToTarget(parent(), caption_button_container_, &local_point);
      if (caption_button_container_->HitTestPoint(local_point)) {
        const int hit_test_result =
            caption_button_container_->NonClientHitTest(local_point);
        if (hit_test_result != HTNOWHERE)
          return hit_test_result;
      }
    }
    
    
    
    
    if (base::win::GetVersion() >= base::win::Version::WIN8) {
      RECT button_bounds = {0};