Tools interrupted in their drag phase break when returning to the tool
Description
When drawing with the 'Pen' tool and switching the tool prematurely (before you have clicked enter) and then going back to the Pen tool and moving the mouse cursor around a bit, this happens

Reproduction steps
- Start drawing with the pen tool
- Don't press enter and have the line still following the cursor
- Click on any other tool and draw with it
- Click back onto the pen tool and move your mouse around
To be honest I think that it looked nice but probably wasn't intended to happen.
This can also be replicated with other tools, for example if you start drawing a rectangle and then press 'E' without letting go of the mouse button and committing the operation, use another tool and then change back to the rectangle tool then it draws many rectangles

@pkupper this is related to the other changes you've been making, would you like to assign this bug to yourself?
This is mostly fixed by the new input system, the inconvenience of having to click twice after a new tool is selected (if you do the drag thing) will be addressed once we properly implement the input preprocessor