How can I access my data outside this filterAccepsRows() because in the class body sourceModel() is not working
Why do you need to access the filter data outside the class?

sourceModel() will return a model only when a source model is on the proxy model