Is their anyway to get the location of the editor camera?


I need to get the world position of the editor camera in the level. Is this possible? Any idea how I would go about it.

My goal is to spawn an object, but this object I would like to be in reference to the viewport. There I need to get ideally the whole transform.

Thanks in advance.