This means that the frame has enlarged in size, perhaps due to moisture, and because of this increase in size, the window cannot be opened. This is also a common phrase used with an eye. If a person is hit in the eye and the area around the eye swells in such a way that the eye cannot be opened, you say that it is "swollen shut".