[Tooldev] Custom component that responds to mouse clicks in the *Editor*?

You’ll need to look into the FComponentVisualizer class.
See here for the spline component (you’ll need linked github account): https://github.com/EpicGames/UnrealEngine/blob/97c8d3ef55e869e17ef149903eae2a33101381c9/Engine/Source/Editor/ComponentVisualizers/Public/SplineComponentVisualizer.h