Yasir Shah took his first in the match when he dismissed Marnus Labuschagne for 13.
Pakistan resumed at 45-3 in the morning session and batted sensibly on a deteriorating pitch before declaring their second innings at 181-6.
Preview: Mohammad Abbas unearthed the reverse-swing on offer on day four at the Dubai International Cricket Stadium and captured three wickets in no time to leave Pakistan in a strong position against Australia in the first Test on Wednesday.
Catch all the live updates from Day 5 of the first Test between Pakistan and Australia in Dubai.
A valiant Khawaja dug in for eight hours and 44 minutes, scoring 141 off 302 balls in the second-longest knock ever in the fourth innings of a Test.
Sohail, who raised his century off 223 balls, tried his favourite cut shot off Nathan Lyon (2-114) and was caught behind as Australia struck with regular intervals.
The breakthroughs will provide some slight hope but Tim Paine's men will rue a post-lunch collapse which undid a highly-promising start.
The depleted Australian squad was expected to struggle in the UAE, but Paine could hardly have asked for a more spirited display to begin his first full series in charge.
On day 4 at stumps, Pakistan bowlers bowled some good deliveries to take three wickets including inform Finch, Mitchell Marsh and Shaud Marsh, who got out for duck.
Australia's tail failed to wag but the blame will rightly fall on a middle order that failed to contribute a score of note.
Test debutant Aaron Finch (62) and Usman Khawaja (85) both appeared on track for centuries after putting on Australia's second-highest opening partnership in Asia.
It was an action replay of the first innings as Australian openers put on 87 - they made 142 in their total of 202 on Tuesday - as Finch was trapped leg-before soon after tea with a sharp incoming delivery from Abbas.
Pakistan in their first innings scored 482 runs with Muhammad Hafeez and Haris Sohail making tons.
- Hurricane Michael European Model Shows Storm Intensifying
- Google to shut down Google+ after security glitch
- Kavanaugh 'Hoax Set Up By Dems' Will Cost Them In The Midterms
- Wolves call off practice a day after Butler's antics
- Eden Hazard offers himself to Real Madrid again
- Virgil van Dijk on the games which will define Liverpool’s title bid
- 20 die in two-car accident involving wedding limo in upstate NY
- Jose Mourinho could still be sacked by Manchester United
- Indonesia natural disaster , tsunami toll reaches 1,649
- Kim Jong-un wants Pope Francis to visit North Korea, says Seoul