This method is intended for use by action implementations to create icons displayed in the proxy widgets. The function takes the icon size as a parameter and return a widget that displays the icon for this action.