Sorry, that's what I get for reading too fast. I thought you wanted to transfer stuff to your inventory, not a container. I don't think there's anything for that, that behaviour is probably hard-coded. Perhaps you could try asking in the MCP thread?
initial post:
If you only need one item, just click on it and then right-click your mouse or press spacebar (it's one of those two) to close the inventory windows. That should transfer that one object, I do this alot when I encounter crates and barrels that only have one useful item but if you want to do it with more than one, I think your best bet would be to position the windows so you have minimal dragging to do so it becomes less of a drag