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)
  return ::IsWindowEnabled(GetAcceleratedWidget());
#elif defined(OS_LINUX)
#if defined(USE_X11)
  if (!features::IsUsingOzonePlatform()) {
    return !event_disabler_.get();
  }
#endif
  NOTIMPLEMENTED();
  return true;
#endif
}
void NativeWindowViews::IncrementChildModals() {
  num_modal_children_++;
  SetEnabledInternal(ShouldBeEnabled());
}
void NativeWindowViews::DecrementChildModals() {
  if (num_modal_children_ > 0) {
    num_modal_children_--;
  }
  SetEnabledInternal(ShouldBeEnabled());
}
void NativeWindowViews::SetEnabled(bool enable) {
  if (enable != is_enabled_) {
    is_enabled_ = enable;
    SetEnabledInternal(ShouldBeEnabled());
  }
}
bool NativeWindowViews::ShouldBeEnabled() {