How can i get the RootElement of a VisualElement

I want to add a visualElement to the root of the Entire UI i only have a VisualElement
What i could do is just keep getting the parent but this just seems like a weard way to do it

Thanks in advance Entchenklein

Hi!
You can use panel.visualTree for this purpose.