Save mask as a vector layer to apply

I am trying to run some ocean object detection using a bespoke mask I have generated in SNAP. I can see that I can use a bespoke mask by clicking the “Use Vector as Mask” radio button, but I can’t see how to get the raster mask I have generated with SNAP to be a vector I can apply at this point.
Please can you explain the missing steps to me.