def dragTo(x=None, y=None, duration=0.0, tween=linear, button='left', pause=None, _pause=True):
    _failSafeCheck()
    if type(x) in (tuple, list):
        x, y = x[0], x[1]
    mouseDown(button=button, _pause=False)
    _mouseMoveDrag('drag', x, y, 0, 0, duration, tween, button)
    mouseUp(button=button, _pause=False)

    _autoPause(pause, _pause)
Performs a mouse drag (mouse movement while a button is held down) to a
dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py/dragTo