How to implement box selection of handles in a EditorNode3DGizmoPlugin?

Godot Version

4.5.1

Question

I am having difficulties finding help for writing my gizmo plugin, especially:

  • how to implement box selection of handles in EditorNode3DGizmoPlugin?
  • what are subgizmos and how/when to use them?

More Details

I am trying to implement a EditorPlugin to create a network of 3D nodes (on the XZ plane). I successfully implemented the EditorNode3DGizmoPlugin to drag and select 3D nodes in the viewport like this:

I use add_handles and add_lines to represent the node network when editing.
I succeeded to implement selection by implementing _begin_handle_action() and drag/move by implementing _set_handle().

However, I am reaching a dead end in terms of selecting multiple handles with a box selection. Is it possible? I was told that maybe subgizmos could be the solution here but I just don’t understand how to use them with my handles

For people searching for an example on how to use subgizmos, there is this add-on here which provides a simple example: