How to draw a line from the center of the screen to mouse cursor?

Perhaps not even the middle of the screen, just from point A to the mouse cursor. Sort of like a thick piece of string. I’m guessing I would be using Vertex manipulation to achieve this but I’m not sure how to do it (using drawline doesn’t allow for color change or line thickness, at least to my knowledge).

any help would be appreciated

Thanks