Combine 3cups water and rice in a pot; simmer, covered, until very soft— about 20 minutes. Meanwhile, cook onion over low heat in oil in a saucepan until slightly soft. Add peas and toss for a minute; add rice with its cooking liquid, sugar, and salt.