Display custom bounding box on image

I am attempting to draw bounding box on DICOM images.

I’ve implemented a new extension panel on the right-hand side. As part of my work requirements, I need to overlay rectangles (with our bounding box coordinates) onto images. I intend to utilize the RectangleROI and RectangleROITools methods to achieve this functionality. Specifically, I aim to trigger the display of rectangles with predefined coordinates whenever a button on the side panel, say the “Positive” button, is clicked. While I’ve come across documentation detailing the addition of custom tools, I’m currently seeking guidance on how to call existing annotation tool such as RectangleROI to display rectangles whenever the buttons on my extension panel are activated.
I want to achieve the results displayed on the attached image without using the Rectangle tool on the dropdown list on UI.