I implemented SLIME REPL integration for CommonQt some time ago,
don't know whether it still works in recent CommonQt/SLIME versions, see
It utilizes SLIME REPL eval hooks to make SLIME REPL evaluate
expressions in the context of GUI thread, which is much safer
than just starting separate thread and hoping that doing stuff in
the main thread will not cause some kind of race condition.
When it worked it was enough to do
(ql:quickload 'qt-repl)
(qt-repl:start-gui-thread)
And after that you could do most GUI stuff right from REPL
without worrying that something will break.
In my not-up-to-date CommonQt fork it still works, at least when using