User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
You are sleeping in the UI thread, you are not running in another
thread. asyncexec does not start a new thread, it runs your runnable in
the UI thread. Because you are sleeping in the UI thread, you are
locking up the UI for 2 seconds so that nothing happens during that time.