At this point everyone knows, especially Morgan, that walkers will eventually loose interest in an area such as a building if they can't see or hear anyone inside. So all they had to do was stay away from the hospital windows and keep quiet and the herd of walkers would start to loose interest and dissipate. Yet Morgan keeps standing right where the walkers can see him through the windows.