Cats do jump out of windows. Cats are naturally curious animals, and if the building is low, they might jump out of a window. On higher floors, cats generally won't jump out of windows intentionally, but they are more likely to fall accidentally while chasing insects like flying insects and bees out of curiosity. 
How to prevent cats from jumping out of windows:
1. To prevent cats from climbing windows, you can remove items around the window, as cats need the height of these items to climb to higher places.
2. You can place barriers around the windows to prevent cats from getting close to them.
3. You can also install screens on the windows or install tighter railings to prevent cats from falling out of the window.
4. If the restlessness is due to being in heat, you can take your cat to be spayed or neutered to calm it down.