I leave my broodies in the coop, and let them hatch their chicks in the nest box. When the first hatches, I block them from getting out of the box accidentally, and being hurt by the others. Once all chicks have hatched within 24 hours, I move them all (including any unhatched eggs) into a dog crate with food and water. There I show each chick where the food and water is, and make sure they cannot escape the crate. On the third day, I open the gate and let the broody hen decide when to take her new brood out of the crate. They usually venture out with Mom, and return to the dog crate for a week or two.
I lock them in at night and open the crate each morning. Eventually she will teach them to roost with her. A good broody hen will not allow any of the other chickens to get near her chicks. Of course the first day out of the crate, you need to check that she is protecting them. The other hens usually respect them, and after awile they are part of the flock. Once I had a broody abandon her babies after 2 weeks, and since the flock was so used to the chicks, and they aleready knew how to forage for food and water, they survived. They slept together each night in a nest box keeping each other warm.