Yes, if the material only passes through the gas but not the liquid, the idea is to have a microporous material that is larger than the gas molecules and smaller than the smallest droplet diameter.
The most common example at present: GORE-TEX membrane (ptfe microporous membrane).
GORE-TEX film is a light, thin, strong and durable film invented and produced by W.L. Gore & Associates, Inc. in the United States. It is waterproof, breathable and windproof.
PTFE membrane is a PTFE microporous membrane with 9 billion extremely tiny pores per square inch. This is the key technology for the windproof, waterproof and breathable performance of GORE-TEX fabrics.
These pores are one 20,000th the size of liquid water droplets, but are 700 times larger than water molecules. Therefore, water droplets cannot penetrate them, but water vapor can be discharged.
This kind of membrane is used as an interlayer in waterproof and breathable jacket fabrics for outdoor use.
</p