Creating custom handles

Is it possible to override object selection so you could create custom handles I’ve looked around and cant find much API info so any help appreciated, (by handles I mean draggers these things)
image

Is it also possible to get the current “tool” the user has selected to move objects (these)
image