Drag and drop off a 3D item from inventory

I have created all the basic and foundational functionality of my inventory and items. Now I need to perform a simple task which will be: If I perform a drag and drop within my inventory, the indexes will swap. If I perform a drag and drop outside the boundaries of my on-screen inventory, a 3D item will spawn and become attached to my mouse cursor and will be removed from my inventory. (This last part is easy, I remove the index from my inventory)

Any ideas?

this will answer all your questions and how tos
i don’t necessarily recommend doing everything he does as its somewhat over complicated but some of the later videos cover drag and drop and dropping an item to the floor