If you're raising chicks, a broody hen is a blessing. On the other hand, if all you want is eggs to eat, a broody hen is a bother and nuisance. I use an old rabbit hutch nestled behind a metal shed, in the shade, out of sight.
One over-night. I let her out the next morning and had to run her off the nest twice in the morning. From then on, she's another one of the girls. Out and about all day.
I posted a video on YouTube about it. Broody Hen