Bring the chicken broth to a boil in a large pot.
Add the orzo and cook according to package directions, until al dente.
Drain the orzo and set aside.
In a large skillet or Dutch oven, melt the butter and olive oil over medium-low heat.
Add the sliced onions and salt. Cook, stirring occasionally, for 30-45 minutes, or until the onions are deeply golden brown and caramelized. If the onions start to stick to the pan, add a tablespoon of water or broth and scrape up any browned bits from the bottom.
Stir in the sugar (if using) during the last 5 minutes of cooking.
Remove the onions from the skillet and set aside.
In the same skillet, heat the olive oil over medium-high heat.
Add the chicken pieces and season with salt, pepper, garlic powder, and onion powder.
Cook until the chicken is cooked through and lightly browned, about 5-7 minutes.
Remove the chicken from the skillet and set aside.
In the same skillet, pour in the white wine (if using) and bring to a simmer, scraping up any browned bits from the bottom of the pan.
Cook for 2-3 minutes, or until the wine has reduced slightly.
Stir in the heavy cream, Worcestershire sauce, thyme, salt, and pepper.
Bring the sauce to a simmer and cook for 5-7 minutes, or until slightly thickened.
Preheat oven to 375°F (190°C).
In a large bowl, combine the cooked orzo, caramelized onions, cooked chicken, and creamy sauce. Stir well to combine.
Pour the mixture into a greased 9x13 inch baking dish.
Sprinkle the remaining Gruyère and Parmesan cheese evenly over the top.
Bake for 20-25 minutes, or until the cheese is melted, bubbly, and lightly golden brown.
Let the casserole rest for 5-10 minutes before serving.
Garnish with chopped fresh parsley (if using).