/Engine/Source/Editor/UnrealEd/Public/Subsystems/UnrealEditorSubsystem.h
Find the World in the world editor. It can then be used as WorldContext by other libraries like GameplayStatics.
The World used by the world editor.
[UWorld](API\Runtime\Engine\Engine\UWorld) * GetEditorWorld()