Welcome! Everyone has already made good points here.
If you can legally have more than four hens, you will (that chicken math thing)! So plan to have a real structure, not a tiny prefab thing.
In view is best, IMO, but maybe with a game cam it would be doable.
Under the bedroom window would be my VERY LAST choice! Then, I have a lot more birds, and just the noise; roosters at 3am, hens squabbling, no way.
Consider your yard layout, where north is, and how the run will work out there. If you have freezing weather then electricity is almost essential, and it's a good thing to have in the coop anyway.
Pictures might help too.
Mary