Detect UI element under mouse for panels or nodes

Hi guys,
I am trying to determine the RNA path for a node property. Using bpy.ops.ui.copy_data_path_button() does not work with PropertyGroup for some reason… Instead, I was trying to identify the UI element under mouse in order to determine it’s type and calculate the path. I was able so far to identify the node under mouse using the code from nodewrangler, but not the UI elements inside the node. Any ideas?

Related issues “closed” without a solution:

Probable cause: "The Python tooltips are incomplete for PropertyGroups because RNA_path_full_property_py_ex() ( rna_access.c ) doesn’t return a full path.”