With luck, this problem will soon be solved from the opposite direction:
https://lwn.net/Articles/843896/
> Looking forward > Now that there is a pure GTK3 port of Emacs, GTK4 has naturally been released.