SFML doesn't provide such functionality, so you'll have to use OS specific code.
Keep in mind that SFML isn't a GUI library and if you want dialog boxes and other stuff, you should look at Qt or similar libraries. With SFML I usually suggest to use an in-game GUI such as
SFGUI.