When dragging an item from the inventory to the stash windows - if you drag OVER something active beneath, like an NPC, forge or chest - it behaves as if you have clicked on the active item beneath.
i.e. dragging over a forge station will bring up the forge window and closing whatever was there… Dragging over an NPC will activate the NPC dialog behind the window.