You can use the Line Tool to draw in 3D space.
ln + spacebar
to activate the Line Tool. You can also find the Line Tool under ‘Draw’ menu in the top toolbar.To edit your line, double click on the curve and the points will appear. You can move the points around to edit.
You can pipe the line in the right sidebar to create geometry along the line.