пёс is one of the few kooky words that loses a vowel when endings are added.
п(ё)са - genitive singular

Usually it's a 'е' or 'о' that gets dropped.
In the case of окно́, when the final o is...