cooking onions for 20 to 30 minutes caramelizes them and makes them meltingly tender, while the addition of two types of vinegar adds to their complex sweet-tart flavor.