Adding a UMG widget to the viewport in the editor

Hi,

I’m trying to figure out how to add a UMG widget on the viewport, but in the editor (not at runtime). Its for a tool that Im working on. Has anyone tried this?

I’ve tried the blueprint route, but the construct objec/add to viewport functions do not run in the construction script. So I was wondering if there is any other way. I’ve explored the option of adding umg to a separate window on the same screen using editor utility widgets, but I dont think that allows adding it to the viewport.

If anyone has come across this or could point me in the right direction (or if its even possible and maybe im approaching this the wrong way!), I would really appreciate it!