Vitrectomy is indicated in neonates when other less invasive treatments, such as laser therapy or intravitreal injections, fail to halt the progression of severe ROP. It is typically considered when there is a retinal detachment or significant vitreous hemorrhage that cannot be managed by other means.