The drug , commonly known as Viagra, is a doctor-approved treatment largely used to treat erectile dysfunction in men . Developed initially for heart conditions , its surprising side effects relating to the widening of blood vessels led to its repurposing as an powerful solution for sexual health