This creates CursorWrapHelper, which wraps the cursor from e. g. top screen edge to bottom screen edge, and calculates the drag offset from the actual cursor movement.