How to get mouse click world position in the scene view in editor script (NOT BY RAYCAST)

Hello, everything is on the title.

When I am right clicking on the editor view, I want to create a world object at the position I am clicking.

Yes, it work with a raycast:

Vector2 mousePos = Event.current.mousePosition;

RaycastHit _saveRaycastHit;
Ray worldRay = HandleUtility.GUIPointToWorldRay(mousePos);
       
if (Physics.Raycast(worldRay, out _saveRaycastHit, Mathf.Infinity))
        {
            if (_saveRaycastHit.collider.gameObject != null)
            {
                //_saveRaycastHit.point;
            }
        }
else
{
    //here How can I extrapolate a position ?
}

Here if my raycast work, that mean i touch an object, then I can have the position, OK.
But if my raycast doen’t touch anything, I want to extrapolate a world position anyway.

How can I do that ?
Thanks !

just position your new object at worldRay.direction * (how far away you want it from the camera)

Edit: Actually, what I wrote there is not quite right. The expression above would need to be added to a point in world space that corresponds to where you clicked. I think this should work:

worldRay.location + (worldRay.direction * [how far away you want it from the camera]);

can try this also,

*ok nevermind, didnt notice that you want to click on empty space