Crib by window

Do any of you mamas have your babies crib by a window? I don’t know if it’s the best idea or not I just need some opinions