How to draw a rectangle on the viewport given coordinates?

@alireza how do I this?

Following up. @alireza

I think i answered this question in office hours but let me put it here

You should use utilities like packages/core/src/utilities/imageToWorldCoords.ts to go from image to world coordinates