There is a simple example in the manual. Look at draw_line
The line is only visible for one frame so you have to
use draw_line in a loop.

I would use panels. You can create a panel at runtime and style them. after that only calculate the right position