I should have rephrased that: doesn't work.
Anyway, I have seen many projects that had the gtk2 issue and moved to gtk4, not gtk3.
As I stated before, that is asking for future trouble way to soon, throwing away valuable work for nothing. Better choose something that is supported and current NOW, so either gtk4 or Qt6 or both.
Also, Wayland is a moving target, e.g. for Windows positioning there is now a protocol (but only after worldwide undeniable complaints from a huge part of the Linux community)