How to add draggable button to each node

If you look at the Lexical editor (https://playground.lexical.dev/) you will see that when hovering the node, the popup on the left hand side appear which allows us to drag the node to somewhere else. What is the proper way to implement this in ProseMirror? I would like to add a feature that when hovering on this draggale button, the entire node is highligted.