This will allow reusing it elsewhere, notably in the generic wxListCtrl. See #10326. (this is a backport of fa1c3ecfa6 from master)
fa1c3ecfa6