Hey, i had the same problem, and i found a really convenient solution, instead of using sf::view, if you are on windows 10, you can simply :
#ifdef USING_WINDOWS
SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
#endif
this solve all the problem about scaling in 4K display.