ScopedDPIAwarenessDisabler - From plugin code?

Hi Guys,

I’m having problems with ScopedDPIAwarenessDisabler when used in a plugin, it doesn’t work!

If I run the plugin standalone then this test code works:

			delete m_pPluginEditor;
			m_pPluginEditor = m_audioProcessor.CreateHostedEditorIfNeeded();
			auto a = std::make_unique<juce::ScopedDPIAwarenessDisabler>();
			juce::DocumentWindow *pDoc = new juce::DocumentWindow("pop",
				juce::DocumentWindow::minimiseButton | juce::DocumentWindow::closeButton);

			pDoc->setBounds(50, 50, 2000, 2000);

			pDoc->setContentOwned(m_pPluginEditor, true);
			pDoc->setResizable(m_pPluginEditor->isResizable(), false);

When running as a plugin though it doesn’t.

The whole windows DPI thing is confusing the hell out of me, should this be possible?