https://github.com/godotengine/godot/pulls?q=is%3Apr+is%3Aop...
It bas been done :
https://github.com/SimulaVR/gdwlroots
But it is not up to date with Godot 4. You can have your Firefox or Blender window be a regular texture inside a full Godot game, pretty crazy...
https://github.com/godotengine/godot/pulls?q=is%3Apr+is%3Aop...