https://bugs.winehq.org/show_bug.cgi?id=56360
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Thanks for reporting, turns out there is a few more details in DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 that I missed. This program seems to be pretty reliant on 100% accurate behavior, so I'll write tests and submit a fix soon.
Here is a temporary, hacky branch that makes it work: https://gitlab.winehq.org/DarkShadow44/wine/-/commits/dpi