I’m not going to say it can’t be done, but I will venture a guess that it’s going to be difficult and probably a lot of effort.
More effort than simply forking and porting to be X11/Wayland native? Not sure, but I wouldn’t dare to exclude the possibility.