Inside of the Nvidia control panel settings, you must enable G-sync to turn on for both windowed and fullscreen applications, otherwise the default is only fullscreen. Once you've enabled it for both, it will work for both windowed, borderless windowed, and fullscreen.
However you might see the...