Add a decorator that can be used to show a busy cursor while a function is running

Used in SplittableCodeEditTabWidget.open_document (especially needed when the file is large)