When your stash is open you can open the cube, and it opens up over your stash (without closing the stash).
You can then take something out of the cube, and while holding that item, close the cube and then place the item that was in the cube into the stash.
It seems this same “QoL” feature can’t be repeated at the vendor. Am I doing something wrong… or is this something maybe we could all ask for?