Raycasts in Edit Mode

Hello, is it possible to raycast in edit mode at the moment? I’m having trouble with accessing PhysicsWorld from my MonoBehaviour. It seems like Editor World doesn’t have PhysicsWorld, but maybe there is a workaround?

var world = World.DefaultGameObjectInjectionWorld.GetExistingSystem<BuildPhysicsWorld>().PhysicsWorld;

No, the PhysicsWorld is runtime only at the minute.