The verb form -ing is always used after a preposition. "of" is a preposition.
I'm not sure what else you want to know. As for using this pattern, all you can do is imitate the practice of good writers. Make a list of phrases which use this structure and imitate those in your own writing.