As a simple example to what eXpl0it3r mentioned:
sf::View mainView; // the view you are using now. you can move this however you like
sf::View windowView; // this one matches the window
windowView = window.getDefaultView(); // this is how you can match the view to the window (but it will need updating if the window changes)
// ..
window.setView(mainView); // your normal view
window.draw(yourStuff); // the stuff that moves "perspective"
window.setView(windowView); // static window view
window.draw(ui); // the stuff you want to draw relative to the window, ignoring the other view such as a user interface
Remember, though, that - depending on how you use it - you may need to set the window to a specific view before doing certain updates. This is if you use the "current window's view" for any calculations; you can, of course, remove this requirement and use the correct view directly.