Repository: flutter
Issue: [Desktop] Maximized mode on init via changes in win32_window.cpp works on flutter run, but not when executed directly
Labels: engine,platform-windows,a: desktop,has reproducible steps,P2,found in release: 2.10,found in release: 2.13,team-windows,triaged-windows

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

1. Run `flutter create bug`.
2. In `windows/runner/win32_window.cpp` replace the line 120
    - `window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE,` with
    - `window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_MAXIMIZE,` 
3. in console run `flutter run` (and select windows is no default target is selected)
   - the window is maximized
4. Close the app and run it directly `windows\runner\Debug\bug.exe`
   - the window is in default state (not maximized)

**Expected results:** <!-- what did you want to see? -->
Both `flutter run` and executing the final EXE directly runs the app in the maximized mode.

**Actual results:** <!-- what did you see? -->
When executing EXE file directly (in Debug mode built via `flutter run` or in Release mode built via `flutter build windows`) a default window size is shown, i.e. in position and size defined in `windows/runner/main.cpp`:
```
  Win32Window::Point origin(10, 10);
  Win32Window::Size size(1280, 720);
```
<details>
  <summary>Logs</summary>

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[√] Flutter (Channel master, 1.27.0-5.0.pre.90, on Microsoft Windows [Version 10.0.19041.746], locale en-US)
    • Flutter version 1.27.0-5.0.pre.90 at C:\flutter-sdk\flutter
    • Framework revision 371dd87aa0 (8 hours ago), 2021-02-20 13:11:58 +0100
    • Engine revision b793775d2a
    • Dart version 2.13.0 (build 2.13.0-52.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\j.tosovsky\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\RedHat\java-11-openjdk-11.0.8-2\bin\java
    • Java version OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.8.30907.101
    • Windows 10 SDK version 10.0.18362.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.3
    • Flutter plugin version 52.1.5
    • Dart plugin version 203.6912

[√] VS Code (version 1.53.2)
    • VS Code at C:\Users\j.tosovsky\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19041.746]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 88.0.4324.182
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 79.0.309.65

! Doctor found issues in 2 categories.
```

</details>