Just tested it on my laptop and my brother's PC. You have to be in windowed mode for it to have a custom resolution. Worked for me at least, full screen and borderless windowed modes don't allow you to use a custom resolution.