Vacuum foam-drying