This is similar to 1529ab0ac7a3591cad301d7b3cbb0a7d85377f3e.
DOOM (379720) doesn't change back to the original resolution when entering windowed mode from non-native fullscreen mode on the secondary monitor. So after that, the raw and effective monitor DPI differs when emulate_modeset is on, and Wine needs to scale the game window according to DPI. Wine's built-in title bar is drawn using NtGdiGradientFill() in draw_caption_bar(). On Linux, NtGdiGradientFill() eventually calls xrenderdrv_GradientFill(). However, the lp_to_dp() in winex11.drv doesn't map coordinates to raw monitor DPI. So the title bar drawn in this case is too small and looks corrupted.