A forest with multiple top-level domains

I need urgently answer the following questions:

At what condition a forest can contain domains of the same level? (or multiple top-level domains)

If a forest contains multiple top-level domains, how to determine which of them is root domain? (with an LDAP query).

And what does this root mean, if the domains are not in the same domain tree?