Open a related file based on the path.