Microsoft has more patents than any other company in the USA. Which includes Apple. So yeah they have invented plenty of things.
Yes they have also done their fair share of "borrowing" what others have done. But they have also created more than any other PC company as well.