This isn't the same thing. Yes Gmail provides IMAP so you can read it from other clients. The issue here is that Gmail cannot use IMAP to ingest email from other accounts, as it can (or could) using POP3.
But you can't pull from a third party into gmail via IMAP.