Remove unused global variable.
Call custom function when user stops dragging an object and the action is not handled.
Overhaul mouse actions within inventories.