This tool is used to draw lines. Click the left mouse button to indicate the first endpoint, keep the button pressed, drag to the second endpoint and release the button.
Use Shift while holding the mouse button to restrict drawing to only horizontal or vertical lines. You can press Alt while still keeping the left mouse button down to move the line to a different location.