The only way to fix a retinal detachment (example on the left) is to undergo retinal detachment surgery. If your detached retina is not repaired, you will eventually lose all your visual function in that eye. This is similar to when the wallpaper peels away from your living room wall.
When you develop a retinal detachment, your retina (or more specifically, your neurosensory retina) becomes peeled off from the wall of the eye.