Drag the mouse on the canvas to draw any line. The line created by the tool is a path shape, which can be further edited using the path tool.
Press the free drawing button in the toolbar or press the number key 3 on the keyboard to start the free drawing tool.