I've tried it once very quickly just for fun a few years ago when I was making my first Ilfochrome prints. It's easy in theory and a bit more complex in practice, as you need to have a precise registration system and have to somehow add some distance between the original and the mask to make it out-of-focus.
You can do OOF mask and sandwich it with the original without gap, or a sharp mask and have a gap in the printing stage, or combine both of the methods.
If you print negs, the mask is positive, if you print positive (e.g. Ilfochrome), the mask is negative. So, in any case, you make a copy on a negative film. Fine-grained, slow, low-fog film is of course best for masks. It doesn't necessarily need to be underexposed, but usually it is "underdeveloped" or developed in a weak developer giving low contrast so that the effect is only subtle. By changing the exposure of the mask film, you can adjust whether you want to affect only the highlights (underexpose the mask) or the whole image (expose so that you get full tonal scale in the mask), or the shadows (overexpose the mask greatly). Oh, these are for positive printing (Ilfochrome), for negs they are reversed.
I just manually aligned the 35mm contact copy with the 35mm slide I was printing, so the alignment was a bit off. I just taped them together. But it worked as a proof of the concept surprisingly well!
It's more difficult to control how much out-of-focus the mask is. IIRC, I just contact copied it through the base to make the mask slightly OOF, then I sandwiched it with the film so that the film base again adds some distance. For the actual OOF effect, the diffusiveness of the light source and the aperture of the enlarger lens affect the result greatly (in both stages). And, if you increase the distance between the mask and original too much, you have to somehow compensate for the different size. You may need to do enlarged or reduced mask, depending whether is it before or after the original in the light path.
The mask in my example was highlight only (underexposed), I should have exposed it a bit more to give more overall effect, and developed less to compensate.
So, here are some ideas to consider!.