Help mouse to world in editor (Editor Utility Widget)

Hello, I am looking for any advice on how to create a raycast from the mouse position but on the editor, I am trying to make an editor utility widget that can spawn certain objects on my mouse location. the only problem I have is that I can not find any node that works with the editor camera, only player controller.