Maximise button in Native Titlebar

Hello!
I’ve got an audio plug-in with a Standalone version using the native OS titlebar, but there appears to be a bug with using setUsingNativeTitleBar(true) in JUCE on Windows. For some reason the maximise button is always disabled (I’d like to it be enabled), even when I’ve also set
setSize (900, 600);
setResizeLimits(900, 600, INT_MAX, INT_MAX);
setResizable(true, false);

Interestingly on MacOS, the maximise button works just fine, so it only affects the Windows build. How can I fix this?

Windows_Titlebar_Maximise

Add the following code to the initialization process of AudioProcessorEditor and the maximize button on the window will work.

	// Find StandaloneFilterWindow instance
    juce::StandaloneFilterWindow* standaloneWindow = nullptr;
    if (juce::PluginHostType::getPluginLoadedAs() == juce::AudioProcessor::wrapperType_Standalone)
    {
        auto& desktop = juce::Desktop::getInstance();
        const int numTopLevelWindows = desktop.getNumComponents();

        for (int i = 0; i < numTopLevelWindows; ++i)
        {
            if (auto window = dynamic_cast<juce::StandaloneFilterWindow*> (desktop.getComponent (i)))
            {
                standaloneWindow = window;
                break;
            }
        }
    }

    // Change button settings when StandaloneFilterWindow found
    if (standaloneWindow != nullptr)
    {
        standaloneWindow->setTitleBarButtonsRequired (juce::DocumentWindow::allButtons, false);
    }