As in topic. API currently offers fixed ratio only for Mac but not for Windows
shell/browser/native_window_views.cc
#if defined(OS_WIN)
  gfx::Point pos = GetPosition();
  gfx::Size size = GetSize();
  ::SetWindowPos(GetAcceleratedWidget(), HWND_TOP, pos.x(), pos.y(),
                 size.width(), size.height(),
                 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
#elif defined(USE_X11)
  if (!features::IsUsingOzonePlatform()) {
    electron::MoveWindowToForeground(
        static_cast<x11::Window>(GetAcceleratedWidget()));
  }
#endif
}
bool NativeWindowViews::IsResizable() {
#if defined(OS_WIN)
  if (has_frame())
    return ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE) & WS_THICKFRAME;
#endif
  return CanResize();
}
void NativeWindowViews::SetAspectRatio(double aspect_ratio,