(tool) create drag-and-drop gizmo to edit Vector2

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DrewS

I have a basic script with the tool keyword. If the script is running in the editor it draws the gizmos. One such gizmo is a circle located at a Vector2 point from the origin. I want to make it so I can drag-and-drop this gizmo to edit a Vector2 value in the script. I just do not know how to do this.

tool
extends Area2D
var v = Vector2(4,4)
func _draw():
    if Engine.is_editor_hint():
        draw_circle(...)