On desktop writer document, when select Insert menu > Shape > Basic > select any option (for instance: Rectangle) We can change the border weight with Line Width button but it does not exist in LibreOffice Online. It may be added.
In current versions it's possible to bring up the Line dialog using the shape's context menu.