Draw line

Hi guys,

need help to draw a line on mouse movement, not the static line.

I am attaching a sample which is 90 degree bounded as it has been given in animation, I want to make this or such type through mouse movement.

I hope I can get a help from the looking guys.