The drug, called elinzanetant, works by blocking the brain chemicals responsible for hot flashes and night sweats.