Made a separate PR for composer refocus and restore from collapsed:
https://github.com/discourse/discourse/pull/5506