Help creating a click & drag launch mechanic

Hi, I have been working on a sort of Vertical Golf Game, but have been having troubles creating a vertical launch mechanic using left click and dragging to adjust power/trajectory. Here is what I am going for. Any help creating something like this would be greatly appreciated!