Function: x-dnd-get-state-for-frame
Return the state in `x-dnd-current-state' for a frame or window.