This method can be useful, so make it part of the public API, similarly to e.g. wxGrid::GetGridWindow(). See #17786.