File drag & drop not working on Windows 10 release build (probably not JUCE related)

In debug mode the file drag & drop works without issues. As soon we switch to release build, no drag and drop callbacks are received in juce_Win32_Windowing.cpp.
I suspect that this is a Windows issue, but can’t figure what causes the problem.
I’m aware of the Windows security behaviour, that does not allow to drag and drop files between apps running in different elevated permission modes (e.g. as administrator). This is not our case.

Any help or idea is appreciated, thanks!