How to make datapack anti-item drop?

It's been a long time now; I can't seem to remember how to use a datapack to prevent item dropping. I want to force the player to hold onto the items they have, and when they try to drop them, the items should reappear in their inventory in the same slot, with no items being dropped.
Continue to help post