Added mouse drag detection threshold.

This considerably reduces CPU load while dragging container view.

Note that the threshold is only used when drag occurs on title container view, but even restructured code as it is, results in much smoother operation for most frequent cases where underlying window intercepts the drag.