pick up the target window for a mouse event when none is specified