Creates a tray with the specified properties.
The application scope in which the tray icon is created.
A lambda with receiver of type TrayFactory to configure the tray icon.