This is used to identify a specific person or thing close at hand or being indicated or experienced.
Example- This is my house.
Here "This" refers to the house which belongs to the person.
That is used to identify a specific person or thing observed or heard by the speaker.
Example- That boy is her brother.
Here the speaker stresses over the boy who is the girl's brother.