8 m
Rule of thumb: half the rope's length plus about 1.5 m. Drag the floor length; the longest rope that fits is drawn in blue.