[DOCS] Document the contracts of the RootMapper API.

Close #7400