Preheat the oven to 400 degrees F. Spray two rimmed baking sheets with cooking spray.
Whisk together 3 tablespoons of the oil, lemon juice, garlic, 2 teaspoons salt, coriander, cinnamon, cumin and ginger in a large bowl.
Add the onions, eggplant, sweet potatoes and tomatoes and toss well to fully coat the vegetables.
Divide among the prepared baking sheets and arrange in a single layer.
Roast until the sweet potatoes and eggplant are lightly browned and fully softened, 50 to 55 minutes, rotating trays and switching from top to bottom halfway through.
Transfer the vegetables to a large bowl.
Toss with the apricots, cilantro and remaining 2 tablespoons of oil.