You could try this in your lua file..
Code:
object.line = CreateFromMixins(LineMixin)
object.line:SetStartPoint(10,10)
object.line:SetEndPoint(20,20)
object.line:SetThickness(100)
object.line:Draw()
I haven't tested it yet but based on the function requiring a parent window I suspect the parent window is either a frame or the texture on a frame.
Obviously replace object with the appropriate parent window object.
EDIT: .. Hmm, not as easy as I thought .. Its now sounding like the line is the texture but not 100% sure