PGE1 works by relaxing the smooth muscle in the walls of blood vessels, which helps to keep the ductus arteriosus open. This is crucial in neonates with congenital heart defects, where maintaining adequate blood flow between the pulmonary artery and the aorta is essential for survival until definitive surgical correction can be performed.