This could work, perhaps looking directly at a container and holding the "drop item" key will put it in if there is an available space for it.
If there isn't space, the prompt displays that there isn't space in the container, and the item just drops to the ground.
It would be good for immersion seekers too, and useful on any platform to simplify storing items.