How to obtain the currently selected game object in the Blueprint Editor (during editing)

I want to create a plugin that displays the name of a game object when the mouse hovers over it in the Blueprint editor, while simultaneously hiding all other objects.
Does the Blueprint editor support ray detection for this purpose?

Help, Thanks~