Every output gets one fullscreen Emacs frame assigned that stays in the background. Every external Wayland Window gets one Emacs buffer assigned. When this buffer is displayed, the external Wayland Window for this buffer gets displayed exactly on top of the buffer.