Under your if(Input.is_mouse_button_pressed())
try a line like this:
set_pos(Vector2(get_viewport().get_mouse_pos())
this will set the object to the vector current position of the mouse. Once you release the button, the object should continue it's physics as normal.