Revised dock window loading to avoid crash on Mono/Linux.