Drawing a line over video that is camera tracked
Masks do not render in after effects, the lines and boxes are UI elements of the program. To render a mask you have to apply an effect such as the stroke effect to the layer, using the mask as the source.

You could also add a stroke as a drawing on a new layer. You can do that by using the pen tool when there are no layers selected. That will create a shape layer with the current fill and stroke settings, so you may have to turn off the fill.

The boxes around the points would also have to be drawn as individual elments. You could use the square shape tool to draw them as either a source for the stroke effect or on the shape layer.