Rendering Widget to a file

I’m implementing a C++ plugin for the Movie Render Queue. My main goal is to probe some metadata and for every shot in a sequence render a widget, which is inherited from MoviePipelineBurninWidget.

My main questions are:

  1. How to get an instance of a widget in C++? The widget itself is not a C++ class, just a regular blueprint widget I keep inside the plugin’s content directory. I don’t know how to access it when calling:
CreateWidget<UUserWidget>(*/plugin content dir?*/, MyWidget);
  1. How to render widget to a file? I’m not using it as a texture, just as a final output of the render queue.