If you use Haiku Nightly,it has become really easy.
Add the LOTE repository: pkgman add-repo https://www.haikuware.ru/repo/lote
Then install the nightly
and wayland_server
packages from this repository.
Replace the HaikuPorts wayland_server
with the LOTE one,otherwise the window doesn’t update.