Layers have a nice option to convert to stencil.

This would be superb if we could also convert a selection to a stencil.