I believe you need to Set the parameter bMinimizeOnLostFocus in GDAPPCONFIG (winmain).
From the manual:
[OPTIONAL] Minimize application when focus is lost. Use this on Smartphones to minimize the application when an incoming phone call is received.