Do what the above user mention:
sf::RenderWindow window(sf::VideoMode(400,600), "Example", sf::Style::TitleBar);
everything that you dont provide from the style will not appear, in this case only the titlebar will appear. PS: i wrote that line of code fast, so if it mentions error, i apologies ahead of time!