Overlaying Binary Mask on Scan in Viewer

I have cloned the latest master repo of the OHIF viewer.

I would like to programmatically draw a 2D binary mask on one slice of a CT scan in the OHIF viewer. What is the best practice to do this using cornerstone and the current OHIF API? I have looked into MeasurementService and SegmentationService, but am unsure how to use these with passing in my own mask coordinates rather than drawing on the viewer itself using BrushTool.

I think we discussed this in OHIF office hours