Draw a rectangle the size of the error

Click SDHDrawWidget4 vertices, but draw a rectangle the size of the error.

How to use the mouse to draw a rectangle?

Any help would be appreciated. Thanks

It has been resolved.

FVector2D LocalCoords( MyGeometry.AbsoluteToLocal(MouseEvent.GetScreenSpacePosition()));