On the left, the original image with a selection. In the middle,
the Layers Dialog with a layer mask created with the
“Layer's alpha channel” option. On the right, the
result after applying “Intersect Mask with Selection”: the
selection of the non-transparent pixels of the active layer
is the common part between the initial selection and the mask.