Making utility to open editor work only in the UI thread.