Best way to describe this issue is to look at image.

Window appears as empty until there is some interaction with elements (buttons, text inputs) in this window.
This issue only reproduces in Wayland environments (Works with WAYLAND_DISPLAY unset, XWayland).
See also: ZDoom/gzdoom#2712