How to create a custom icons in panel?

How to create a custom icons in tool panel which is visible in both tool panel and when i drag and drop, it should be visible in the work area.

Please help.

Thanks in advance.

What have you already done to achieve this? Have you had a look at specifically this example?