Create a custom Maya viewport

Hi everyone!

I would like to start a project of a custom Maya viewport but I don’t know where to start. I watched these videos :

  1. https://www.youtube.com/watch?v=5v6oHqi2S3o
  2. https://www.youtube.com/watch?v=sOIOgOkddz8

and that’s something I would like to do but with Unity. I guess there is some UDP connection between Maya and the game engine to send data but I don’t know how to draw the game engine view inside Maya as a custom viewport. If anyone has tips about it I would love to hear about it!