If you have an nvidia gpu, you can do this from the Driver using nvidia inspector

Or you can uncap the framerate and use vsync from the nvcp.

Borderless window is vsynced by DWM.