I'd just let it dry out a bit then
1- Treat wood with some wet rot wood hardener.
2- Any wood from the window that's now missing - fill out with 2-part wood filler and sand back to shape.
3- Get some quick dry cement and make good around the window area.
4 - When all dried prime window
5 - seal area where window frame meets the wall with external sealant.
6 - Paint window frame.
7 - leave wall to really dry out month or two before priming and painting in case of any salts wanting to get out.