Wrote a guide called "Relating Resources in an extension".

Fixes #2242
[ci skip]