Ability to add new widgets through plugins

Plugins should have the ability to define new widgtes for the dashboard.

I’ve created my own widget as seen in thread Alert Rules plugin widget for dashboard

but for this to happen I had to hack the application code through reflection in php. This is not a easy way!