I think Blenderkit addon (comes within Blender) has implemented something similar quite nicely. I don’t know much about technical ends but a polished version of this officially being developed would be great. Here is a demonstration:
By the way isn’t this proposal better suited at rightclickselect as stated here and here?