how can I export my em emails (desktop) to gmail IMAP count

I have difficulty in exporting my desktop stored emails to gmail IMAP account

How do you do that? The easiest way is drag&dropping of exported contacts directly to a Gmail folder in eM Client.