You can define the root path for the tags, so only tags below it can be selected. Wouldn't it be easier to move the (dis)allowed tags somewhere else?
Are you familiar with js?
You also seem to be trying to target the main components, but for your tree view you'll need to target every row
Take a look at this one, hre i d&d a table its rows onto a scheduler with its addevent,
i guess it should be similar