Assuming XPCE is running in the foreground thread, this call gives
background threads the opportunity to make calls to the XPCE thread. A
call to in_pce_thread/1
succeeds immediately, copying Goal to the XPCE thread. Goal
is added to the XPCE event queue and executed synchronous to normal user
events like typing and clicking.