Prostaglandins are used in certain congenital heart conditions where keeping the ductus arteriosus open is necessary for adequate blood circulation. For example, in cases of Transposition of the Great Arteries (TGA) or Hypoplastic Left Heart Syndrome (HLHS), prostaglandins maintain ductal patency until surgical intervention can be performed.