Accessing world in EditorUtilityWidget

I have created a custom editor menu using the editorutilitywidget, following the guide here.

I am not getting to access the world through it in any way, I have tried multiple things like
But I am not getting access to the world in any way. Is there any way to access the world from editor widgets?

UWorld* World = GEditor->GetEditorWorldContext().World();

Found it.