Villa has you covered for the inside with good info. On the ouside you don't have the flashing above the window and you likely don't want to remove it. As the window expands and contracts at a different rate than the stucco, the top and the sides seal needs to be checked yearly, Dig out the loose stuff and seal it with a paintable caulk. Don't caulk the bottom.