Realistically, I have no idea on how easy or hard it might be. Theoretically, if you could bypass Godot opening an OpenGL window and context automatically, and instead pass your own OpenGL window and context, then it may be possible.
I have not tried it myself though and have very little experience embedding OpenGL into a UI framework. With Godot 4.0 it may be slightly easier to embed due to a more abstract rendering backend framework, but that is mostly speculation on my part.
Edit: accidentally hit post while writing...