Dynamic resolution
Templates are looked up in the order of the configured namespaces, and the first existing file wins.
With the example configuration, the current site mysite and the site group mygroup, this resolves to the first existing file of:
templates/sites/mysite/header.twigtemplates/groups/mygroup/header.twigtemplates/_global/header.twig
{% include 'header.twig' %}If none exists, Craft throws its usual TemplateNotFound exception.