Replacement for GDI/Drawing 2D shapes

Is there a replacement for GDI like functionality in UE4? I want to draw lines, shapes, etc. onto a texture.