Drag drop object from hud to 3d space

Hello! Can somebody point me out how I can drop an object on mouse position when dragged? This is what I’ve been trying to do to get the object spawning on the cursor location but I’m not having any success:

][1]