Cook it and stir periodically over medium heat, until it is almost done and begins to brown.
If you choose to cook the pilaf with beef, or country meat - make sure it is soft and well cooked before adding onions, as below. Pour a little more water and boil with the lid on if necessary.