The short answer, explained
Dormant means the company currently has no significant accounting transactions, not that it's exempt from scrutiny. HMRC can still open an enquiry into any corporation tax return the company filed while it was trading.
The dormancy itself doesn't create a new time limit or block HMRC's existing powers. If the company traded three years ago and is dormant now, HMRC can still enquire into that earlier return within the normal window.
Dormant companies also sometimes attract HMRC's attention precisely because trading stopped shortly before, or shortly after, a period HMRC wants to check.

