Using the name of ids did not work when there were multiple ids with the same name (which can happen when ids are linked in). This patch updates some drag and drop operators to use session uuids instead which are different even when two ids have the same name.
This fixes T87912.
There are a few more cases where the same fix could be applied, but I didn't want to make this patch unnecessarily large for now. Other cases can also just be fixed separately.