If you open a building (miner for example) while standing in a long belt, you can drag items to/from it even if the belt pulls you far far from the building.
I believe it should close the building dialog or gray out its inventory. This might require lots of race condition and edge cases checking, like decide whether returning the dragged item to its previous inventory or always pulling it to the player's.