What is the Islamic ruling on adoption, and what is the legal window through which a person can be kind to an orphan girl, attend to her needs and raise her as his own?
Kindness to an orphan entails a great reward from Allah, but adoption is prohibited and invalid. Therefore, it is permissible for the aforementioned person (for example) to make his brother`s wife breastfeed that girl so that he becomes her uncle by suckling provided that he informs her that she isn`t his biological daughter.
Is it permissible for a Muslim woman to wear trousers at home?
Wearing trousers at home isn't prohibited so long as non-Mahrams do not see her. And Allah Knows Best.
What should a praying person who doubts having offered one, or two prostrations in the third Rakah (unit of prayer) do?
Whoever has doubts about their prayer should consider what is less i.e. the above person should offer another Sajda (prostration) and complete his/her prayer, then offer Sujood As-Sahw (prostration of forgetfulness). And Allah Knows Best.
What is the ruling on having brotherly ties between a strange man and a strange woman, and is the former considered a Mahram (unmarriageable) to the latter?
Such a relation between a strange man and a strange woman is forbidden in Islam because it involves forbidding what Allah has allowed by marriage, and allowing what Allah has forbidden such as looking and the like. Such a relation doesn`t render any act lawful between them, thus they are forbidden to look at each other, have a Khulwah (seclusion), and travel together.