That is Oriented Strand Board (OSB), typically used for sheathing. Looks like it has been used exposed to weather, which is not its intended use. There is no reasonable repair for that, other than r ... read more
It depends on the type of window. Is it just a glass replacement or does really need the entire sash? Sometimes, the I.G. unit can be replaced using the same frame.