1. Ensure at least one other program is running, with its window maximised.
  2. Drag the orange square around until the mouse is outside the black square.
  3. Without releasing the mouse button, use Alt+Tab (or your system's equivalent) to switch to the other program, then back to this one.
  4. Move the mouse over the blue square. The orange square should not continue to follow the mouse.