It should be avoided. In your GUI, you can have a link to your domain logic, but you should not link to your GUI in your domain logic.
Why? Because otherwise, you have no advantage to separate the GUI and domain logic in separate files. When your logic is dependent on your GUI, you cannot use your logic with another GUI.
So, you should try to avoid this dependency on your logic before your gui, or you should do an abstraction.
Hope I explain here. :)
Frederik gheysels
source share