Making a simple dragging system

Like this?