We were recently asked what to do if a recipe calls for a double boiler, and you do not have one.... The answer is simple! Use a glass bowl!
The bowl must be heat-proof and be big enough to rest atop of the pan. But make sure the water is not filled too high so that it touches the bottom of the bowl!
Also, be careful when handling the bowl, because it will be hot! Use a pot holder!