Write a SQL query using a window function to find the top three highest-paid employees in each department.